import service from '../../../browser/msg/service';

/**
 * 获取微信openid
 * @param code 微信授权code
 * @example get_openid(code);
 */
export default function get_openid(code: string) {
	const param = {
		code,
		flag: '103',
		thirdpay_type: 'weixin_pubno'
	};
	return service('payservice.newthirdpayment', param, false, false);
}
